import pyautogui
import time
import pynput
def find_area():
    print("1")
    top_left=pyautogui.position()
    print(top_left)
    print("2")
    bottom_right=pyautogui.position()
    print(bottom_right)

if __name__ =="__main__":
    def on_click(x,y,button,pressed):
        print(x,y)
    with pynput.mouse.Listener(
        on_click=on_click
    ) as listener:
        listener.join()
        